package com.wyh.seata.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.CommonResult;

import java.math.BigDecimal;

/**
 * @author wyh
 * @version 1.0
 * @date 2021/12/1 16:34
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {

    @PostMapping(value = "/account/deMoney")
    CommonResult deMoney(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
